package com.burns.strawberry.web;/**
 * Created by burns.
 *
 * @author <a href="http://www.esoon-soft.com/">burns</a>
 * @date 2020/12/06 12:46
 */

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HelloController
 * @Description TODO
 * @Author Burns
 * @DAte 2020/12/6 12:46
 * @Version 1.0
 **/
@RestController    //等价于@Controller+@ReponseBody组合
//@RequestMapping("/1")
public class HelloController {
    @RequestMapping("/hello")
    public String hello(){
        return "hello world!";
    }
}
